﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 - 模切材料小管家</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* TDesign 工业品色彩系统 */
            --primary-color: #0052d9;
            --primary-light: #266fe8;
            --primary-dark: #003cab;
            --secondary-color: #f2f3ff;
            --accent-color: #e37318;
            --success-color: #00a870;
            --warning-color: #ed7b2f;
            --error-color: #d54941;
            
            /* 背景色系 */
            --bg-color-page: #f5f7fa;
            --bg-color-container: #ffffff;
            --bg-color-secondray: #f8f9fc;
            
            /* 边框和分割线 */
            --border-color: #e7e7e7;
            --border-color-light: #f0f0f0;
            --border-radius-small: 3px;
            --border-radius-medium: 6px;
            --border-radius-large: 9px;
            
            /* 文字色彩 */
            --text-primary: #1a1a1a;
            --text-secondary: #4e5969;
            --text-placeholder: #86909c;
            --text-disabled: #c9cdd4;
            
            /* 阴影系统 */
            --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-2: 0 1px 4px 0 rgba(0, 0, 0, 0.08);
            --shadow-3: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
            
            /* 间距系统 */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: var(--bg-color-page);
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
            padding-bottom: 64px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        .container {
            max-width: 480px;
            margin: 0 auto;
            background: var(--bg-color-container);
            min-height: 100vh;
            box-shadow: var(--shadow-1);
            position: relative;
            overflow-x: hidden;
        }
        
        /* 头部邀请区域 - TDesign 简约风格 */
        .invite-header {
            background: var(--primary-color);
            color: white;
            padding: var(--space-4);
            position: relative;
        }
        
        .invite-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .invite-text {
            flex: 0 0 auto;
            width: auto;
            max-width: 200px;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: var(--space-2) var(--space-4);
            border-radius: var(--border-radius-medium);
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(10px);
        }
        
        .invite-text:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
        }
        
        .invite-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: var(--space-1);
            display: flex;
            align-items: center;
            gap: var(--space-2);
        }
        
        .invite-title::after {
            content: '→';
            font-size: 12px;
            opacity: 0.8;
            transition: transform 0.2s ease;
        }
        
        .invite-text:hover .invite-title::after {
            transform: translateX(2px);
        }
        
        .invite-subtitle {
            font-size: 12px;
            opacity: 0.9;
        }
        
        .header-actions {
            display: flex;
            gap: var(--space-4);
            align-items: center;
        }
        
        .header-actions i {
            font-size: 16px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .header-actions i:hover {
            opacity: 1;
        }
        
        /* 用户信息区域 - TDesign 简约风格 */
        .user-section {
            background: var(--bg-color-container);
            padding: var(--space-5) var(--space-4);
            border-bottom: 1px solid var(--border-color-light);
            position: relative;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: var(--space-4);
        }
        
        .user-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: 500;
        }
        
        .user-details {
            flex: 1;
        }
        
        .user-name {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: var(--space-1);
            color: var(--text-primary);
        }
        
        .user-company {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: var(--space-2);
        }
        
        .user-arrow {
            color: var(--text-placeholder);
            font-size: 14px;
        }
        
        /* 快捷入口 - TDesign 简约风格 */
        .quick-actions {
            background: var(--bg-color-container);
            padding: var(--space-5) var(--space-4);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: var(--space-4);
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .quick-action {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--space-2);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .quick-action:hover {
            transform: translateY(-1px);
        }
        
        .quick-action-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--border-radius-medium);
            background: var(--bg-color-secondray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 18px;
            transition: all 0.2s ease;
        }
        
        .quick-action:hover .quick-action-icon {
            background: var(--primary-color);
            color: white;
        }
        
        .quick-action-text {
            font-size: 12px;
            color: var(--text-secondary);
            text-align: center;
        }
        
        .quick-action-icon {
            position: relative;
        }
        
        .quick-action-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            background: var(--error-color);
            color: white;
            font-size: 9px;
            font-weight: 500;
            padding: 2px 5px;
            border-radius: 8px;
            min-width: 14px;
            text-align: center;
        }
        
        /* 每日签到区域 - TDesign 简约风格 */
        .checkin-section {
            margin: var(--space-4);
        }
        
        .checkin-card {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            border-radius: var(--border-radius-large);
            padding: var(--space-4);
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-2);
            position: relative;
            overflow: hidden;
        }
        
        .checkin-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: shimmer 3s infinite;
        }
        
        .checkin-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-3);
        }
        
        .checkin-icon {
            width: 48px;
            height: 48px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: var(--space-3);
            flex-shrink: 0;
        }
        
        .checkin-icon i {
            font-size: 20px;
            color: white;
        }
        
        .checkin-content {
            flex: 1;
            color: white;
        }
        
        .checkin-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: var(--space-1);
        }
        
        .checkin-desc {
            font-size: 12px;
            opacity: 0.9;
        }
        
        .checkin-action {
            flex-shrink: 0;
        }
        
        .checkin-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: var(--space-2) var(--space-4);
            border-radius: var(--border-radius-medium);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            backdrop-filter: blur(10px);
        }
        
        .checkin-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
        }
        
        .checkin-btn.checked {
            background: var(--success-color);
            border-color: var(--success-color);
        }
        
        .checkin-btn.checked:hover {
            background: var(--success-color);
            border-color: var(--success-color);
        }
        
        @keyframes shimmer {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes checkinSuccess {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        /* 会员区域 - TDesign 简约风格 */
        .membership-section {
            background: var(--primary-color);
            margin: var(--space-4);
            border-radius: var(--border-radius-medium);
            padding: var(--space-5);
            color: white;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-2);
        }
        
        .membership-section::before {
            content: 'V';
            position: absolute;
            right: -20px;
            top: -20px;
            font-size: 120px;
            opacity: 0.1;
            font-weight: bold;
        }
        
        .membership-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .membership-info {
            flex: 1;
        }
        
        .membership-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: var(--space-2);
        }
        
        .membership-desc {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            margin-top: var(--space-2);
        }
        
        .early-bird-badge {
            display: flex;
            align-items: center;
            gap: var(--space-1);
            background: linear-gradient(45deg, #ff6b6b, #ff8e53);
            color: white;
            padding: 4px 8px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
        }
        
        .early-bird-badge i {
            font-size: 11px;
            animation: flicker 1.5s infinite alternate;
        }
        
        .price-info {
            display: flex;
            align-items: baseline;
            gap: 2px;
        }
        
        .price {
            font-size: 14px;
            font-weight: 700;
            color: #ff6b6b;
            text-shadow: 0 1px 2px rgba(255, 107, 107, 0.2);
        }
        
        .period {
            font-size: 14px;
            color: white;
            font-weight: 500;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: var(--space-1);
            background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(0, 82, 217, 0.3);
            animation: pulse-glow 2s infinite;
        }
        
        .action-btn i {
            font-size: 11px;
        }
        
        @keyframes flicker {
            0% { opacity: 0.8; }
            100% { opacity: 1; }
        }
        
        @keyframes pulse-glow {
            0%, 100% { 
                box-shadow: 0 2px 6px rgba(0, 82, 217, 0.3);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 4px 12px rgba(0, 82, 217, 0.5);
                transform: scale(1.05);
            }
        }
        
        .membership-arrow {
            font-size: 14px;
            opacity: 0.8;
        }
        
        /* 功能列表 - TDesign 简约风格 */
        .function-section {
            background: var(--bg-color-container);
            margin: var(--space-4);
            border-radius: var(--border-radius-medium);
            overflow: hidden;
            box-shadow: var(--shadow-1);
            border: 1px solid var(--border-color-light);
        }
        
        .section-title {
            padding: var(--space-4);
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            background: var(--bg-color-secondray);
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .function-group {
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .function-group:last-child {
            border-bottom: none;
        }
        
        .function-item {
            display: flex;
            align-items: center;
            padding: var(--space-4);
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        
        .function-item:hover {
            background-color: var(--bg-color-secondray);
        }
        
        .function-icon {
            width: 24px;
            height: 24px;
            border-radius: var(--border-radius-small);
            background: var(--bg-color-secondray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 14px;
            margin-right: var(--space-3);
        }
        
        .function-text {
            flex: 1;
            font-size: 14px;
            color: var(--text-primary);
        }
        
        .function-arrow {
            color: var(--text-placeholder);
            font-size: 14px;
        }
        
        .function-badge {
            background: var(--error-color);
            color: white;
            font-size: 10px;
            font-weight: 500;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 16px;
            text-align: center;
            margin-right: var(--space-2);
        }
        
        /* 客服区域 - TDesign 简约风格 */
        .service-section {
            background: var(--bg-color-container);
            margin: var(--space-4);
            border-radius: var(--border-radius-medium);
            padding: var(--space-5);
            box-shadow: var(--shadow-1);
            border: 1px solid var(--border-color-light);
        }
        
        .service-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-4);
        }
        
        .service-details {
            flex: 1;
        }
        
        .service-title {
            font-size: 14px;
            color: var(--text-primary);
            margin-bottom: var(--space-1);
            font-weight: 500;
        }
        
        .service-phone {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: var(--space-1);
        }
        
        .service-time {
            font-size: 12px;
            color: var(--text-placeholder);
            margin-bottom: var(--space-1);
        }
        
        .service-license {
            font-size: 12px;
            color: var(--text-placeholder);
        }
        
        .service-button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: var(--space-2) var(--space-4);
            border-radius: var(--border-radius-small);
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: var(--space-1);
            transition: all 0.2s ease;
        }
        
        .service-button:hover {
            background: var(--primary-light);
        }
        
        /* 底部导航 - TDesign 简约风格 */
        .tabbar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-color-container);
            display: flex;
            border-top: 1px solid var(--border-color);
            z-index: 100;
            max-width: 480px;
            margin: 0 auto;
            height: 64px;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: var(--space-2) 0;
            color: var(--text-placeholder);
            font-size: 10px;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .tab-item.active {
            color: var(--primary-color);
        }
        
        .tab-item:hover {
            color: var(--primary-light);
        }
        
        .tab-item i {
            font-size: 18px;
            margin-bottom: var(--space-1);
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 邀请头部 -->
        <div class="invite-header">
            <div class="invite-content">
                <div class="invite-text" onclick="goToInviteShare()">
                    <div class="invite-title">邀请有礼</div>
                    <div class="invite-subtitle">邀请好友可得100积分</div>
                </div>
                <div class="header-actions">
                    <i class="fas fa-comment" onclick="location.href='messages.html'"></i>
                    <i class="fas fa-cog" onclick="location.href='settings.html'"></i>
                    <i class="fas fa-ellipsis-h" onclick="showMoreOptions()"></i>
                    <i class="fas fa-bell" onclick="location.href='notifications.html'"></i>
                </div>
            </div>
        </div>
        
        <!-- 用户信息 -->
        <div class="user-section" onclick="location.href='profile-detail.html'">
            <div class="user-info">
                <div class="user-avatar">蒋</div>
                <div class="user-details">
                    <div class="user-name">蒋婷</div>
                    <div class="user-company">上海宏杉电子材料有限公司·市场</div>
                </div>
                <div class="user-arrow">
                    <i class="fas fa-chevron-right"></i>
                </div>
            </div>
        </div>
        
        <!-- 快捷入口 -->
        <div class="quick-actions">
            <div class="quick-action" onclick="location.href='messages.html'">
                <div class="quick-action-icon">
                    <i class="fas fa-comment"></i>
                    <div class="quick-action-badge">10</div>
                </div>
                <div class="quick-action-text">我的消息</div>
            </div>
            <div class="quick-action" onclick="location.href='invitations.html'">
                <div class="quick-action-icon">
                    <i class="fas fa-gift"></i>
                </div>
                <div class="quick-action-text">我的邀请</div>
            </div>
            <div class="quick-action" onclick="location.href='points.html'">
                <div class="quick-action-icon">
                    <i class="fas fa-coins"></i>
                </div>
                <div class="quick-action-text">我的积分</div>
            </div>
            <div class="quick-action" onclick="location.href='points-mall.html'">
                <div class="quick-action-icon">
                    <i class="fas fa-shopping-bag"></i>
                </div>
                <div class="quick-action-text">积分商城</div>
            </div>
        </div>
        
        <!-- 每日签到区域 -->
        <div class="checkin-section">
            <div class="checkin-card" onclick="dailyCheckin()">
                <div class="checkin-icon">
                    <i class="fas fa-calendar-check"></i>
                </div>
                <div class="checkin-content">
                    <div class="checkin-title">每日签到</div>
                    <div class="checkin-desc" id="checkinDesc">签到获得积分奖励</div>
                </div>
                <div class="checkin-action">
                    <button class="checkin-btn" id="checkinBtn">
                        <span id="checkinBtnText">签到</span>
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 会员区域 -->
        <div class="membership-section" onclick="location.href='membership.html'">
            <div class="membership-content">
                <div class="membership-info">
                    <div class="membership-title">注册付费会员，享阅览自由+发布自由+定制服务</div>
                    <div class="membership-desc">
                        <div class="early-bird-badge">
                            <i class="fas fa-fire"></i>
                            <span>早鸟特惠</span>
                        </div>
                        <div class="price-info">
                            <span class="price">￥365元</span>
                            <span class="period">/年</span>
                        </div>
                        <div class="action-btn">
                            <i class="fas fa-rocket"></i>
                            <span>立即开通</span>
                        </div>
                    </div>
                </div>
                <div class="membership-arrow">
                    <i class="fas fa-chevron-right"></i>
                </div>
            </div>
        </div>
        
        <!-- 商机功能 -->
        <div class="function-section">
            <div class="section-title">商机</div>
            <div class="function-group">
                <div class="function-item" onclick="location.href='my-processing.html'">
                    <div class="function-icon">
                        <i class="fas fa-cogs"></i>
                    </div>
                    <div class="function-text">我的加工</div>
                    <div class="function-badge">2</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='my-materials.html'">
                    <div class="function-icon">
                        <i class="fas fa-box"></i>
                    </div>
                    <div class="function-text">我的材料</div>
                    <div class="function-badge">5</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='my-materials.html'">
                    <div class="function-icon">
                        <i class="fas fa-cube"></i>
                    </div>
                    <div class="function-text">我的散料</div>
                    <div class="function-badge">3</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='my-groups.html'">
                    <div class="function-icon">
                        <i class="fas fa-users"></i>
                    </div>
                    <div class="function-text">我的拼单</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='my-demands.html'">
                    <div class="function-icon">
                        <i class="fas fa-search"></i>
                    </div>
                    <div class="function-text">我的求购</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='received-orders.html'">
                    <div class="function-icon">
                        <i class="fas fa-handshake"></i>
                    </div>
                    <div class="function-text">我的接单</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='my-inquiries.html'">
                    <div class="function-icon">
                        <i class="fas fa-question-circle"></i>
                    </div>
                    <div class="function-text">我的询价</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 基础服务功能 -->
        <div class="function-section">
            <div class="section-title">基础服务</div>
            <div class="function-group">
                <div class="function-item" onclick="location.href='enterprise-management.html'">
                    <div class="function-icon">
                        <i class="fas fa-building"></i>
                    </div>
                    <div class="function-text">我的企业</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='my-messages.html'">
                    <div class="function-icon">
                        <i class="fas fa-inbox"></i>
                    </div>
                    <div class="function-text">我的留言</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='my-collections.html'">
                    <div class="function-icon">
                        <i class="fas fa-heart"></i>
                    </div>
                    <div class="function-text">我的收藏</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='my-exchanges.html'">
                    <div class="function-icon">
                        <i class="fas fa-exchange-alt"></i>
                    </div>
                    <div class="function-text">我的兑换</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="function-item" onclick="location.href='account-management.html'">
                    <div class="function-icon">
                        <i class="fas fa-user-cog"></i>
                    </div>
                    <div class="function-text">账号管理</div>
                    <div class="function-arrow">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 客服区域 -->
        <div class="service-section">
            <div class="service-info">
                <div class="service-details">
                    <div class="service-title">客服电话</div>
                    <div class="service-phone">400-888-8888</div>
                    <div class="service-time">工作时间 8:30-18:00</div>
                    <div class="service-license">营业执照：沪ICP备12345678号</div>
                </div>
                <button class="service-button" onclick="contactService()">
                    <i class="fas fa-comments"></i>
                    立即咨询
                </button>
            </div>
        </div>
        
        <!-- 底部导航（统一） -->
        <div class="tabbar">
            <div class="tab-item" onclick="location.href='home.html'">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </div>
            <div class="tab-item" onclick="location.href='demand-list.html'">
                <i class="fas fa-search"></i>
                <span>求购</span>
            </div>
            <div class="tab-item" onclick="location.href='publish-select.html'">
                <i class="fas fa-plus-circle"></i>
                <span>发布</span>
            </div>
            <div class="tab-item" onclick="location.href='consultation.html'">
                <i class="fas fa-comments"></i>
                <span>客服</span>
            </div>
            <div class="tab-item active" onclick="location.href='profile.html'">
                <i class="fas fa-user"></i>
                <span>我的</span>
            </div>
        </div>
    </div>
    
    <script>
        // 跳转到邀请分享页面
        function goToInviteShare() {
            // 添加点击反馈动画
            const inviteText = document.querySelector('.invite-text');
            inviteText.style.transform = 'scale(0.95)';
            setTimeout(() => {
                inviteText.style.transform = '';
                // 跳转到邀请分享页面
                window.location.href = 'invite-share.html';
            }, 150);
        }
        
        // 更多选项
        function showMoreOptions() {
            console.log('显示更多选项');
            // 这里可以显示一个下拉菜单
        }
        
        // 联系客服
        function contactService() {
            console.log('联系客服');
            // 这里可以打开客服聊天窗口
        }
        
        // 底部导航切换
        document.querySelectorAll('.tab-item').forEach(item => {
            item.addEventListener('click', function() {
                document.querySelectorAll('.tab-item').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
            });
        });
        
        // 功能项点击效果
        document.querySelectorAll('.function-item').forEach(item => {
            item.addEventListener('click', function() {
                this.style.transform = 'scale(0.98)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });
        
        // 快捷操作点击效果
        document.querySelectorAll('.quick-action').forEach(item => {
            item.addEventListener('click', function() {
                this.style.transform = 'scale(0.95)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });
        
        // 每日签到功能
        function dailyCheckin() {
            const today = new Date().toDateString();
            const lastCheckin = localStorage.getItem('lastCheckin');
            const checkinBtn = document.getElementById('checkinBtn');
            const checkinBtnText = document.getElementById('checkinBtnText');
            const checkinDesc = document.getElementById('checkinDesc');
            
            // 检查今天是否已经签到
            if (lastCheckin === today) {
                alert('您今天已经签到过了！\n\n明天再来签到获得更多积分奖励吧！');
                return;
            }
            
            // 签到成功
            const pointsEarned = Math.floor(Math.random() * 20) + 10; // 随机获得10-30积分
            const totalPoints = parseInt(localStorage.getItem('totalPoints') || '0') + pointsEarned;
            
            // 保存签到记录
            localStorage.setItem('lastCheckin', today);
            localStorage.setItem('totalPoints', totalPoints.toString());
            
            // 更新UI
            checkinBtn.classList.add('checked');
            checkinBtnText.textContent = '已签到';
            checkinDesc.textContent = `今日获得 ${pointsEarned} 积分`;
            checkinBtn.disabled = true;
            
            // 添加成功动画
            checkinBtn.style.animation = 'checkinSuccess 0.6s ease';
            setTimeout(() => {
                checkinBtn.style.animation = '';
            }, 600);
            
            // 显示成功提示
            setTimeout(() => {
                alert(`签到成功！\n\n🎉 恭喜您获得 ${pointsEarned} 积分！\n📊 累计积分：${totalPoints}\n\n继续签到可获得更多奖励！`);
            }, 300);
        }
        
        // 页面加载时检查签到状态
        document.addEventListener('DOMContentLoaded', function() {
            const today = new Date().toDateString();
            const lastCheckin = localStorage.getItem('lastCheckin');
            const checkinBtn = document.getElementById('checkinBtn');
            const checkinBtnText = document.getElementById('checkinBtnText');
            const checkinDesc = document.getElementById('checkinDesc');
            
            if (lastCheckin === today) {
                // 今天已签到
                checkinBtn.classList.add('checked');
                checkinBtnText.textContent = '已签到';
                checkinDesc.textContent = '明天再来签到吧';
                checkinBtn.disabled = true;
            } else {
                // 今天未签到
                checkinBtn.classList.remove('checked');
                checkinBtnText.textContent = '签到';
                checkinDesc.textContent = '签到获得积分奖励';
                checkinBtn.disabled = false;
            }
        });
    </script>
</body>
</html>


